package org.objective.ddl.type;

import java.util.UUID;
import org.objective.base.PredefinedDataType;
import org.objective.base.Referable;
import org.objective.base.Storage;

/**
 *
 * @author gus
 */
public class DDLInteger extends PredefinedDataType
{
    public DDLInteger(Storage storage)
    {
        super(storage, DataType.Integer);
    }

    @Override
    public Referable getObjectRef()
    {
        return null;
    }

    @Override
    public long getDataType()
    {
        return DataType.Integer;
    }

    @Override
    public boolean isSimpleType()
    {
        return true;
    }

    @Override
    public boolean isNullable()
    {
        return false;
    }

    @Override
    public Object getNullValue()
    {
        return -1;
    }

    @Override
    public String getName()
    {
        return getClass().getSimpleName();
    }

    @Override
    protected UUID getUnique()
    {
        return UUID.fromString("7A366C42-B86E-4204-AD89-6A345347A6CE");
    }
}
